The transform of Mac install is done by a bash transform script (transform_mac.sh). 
The transform script will take two inputs, one is the input directory that contains all the definition and artwork of the transform.
The other input is the DMG file for the installer itself.

Prior to the transform, there are 
some preparation work.

Step 1 - Acquire Apple Mac Developer Account
The Mac Installer (PKG) file will need to be signed by the Apple Mac Developer Account. Otherwise the pkg will be blocked by the later Mac OS such as 10.9 or 10.10 

After you acquire the Mac Developer account, you can download the signing certificates, one for signing application files and one for signing installer package. 

You can find the name of your certificates from the KeyChain Access application

For example, the signing certificate names may look like these:
    "Developer ID Application: Gladinet, Inc. (CX8U2YJ96P)"
    "Developer ID Installer: Gladinet, Inc."

The transform script will use the certificates. You will also need to modify the transform script so the lines that define the 
signing certificate will need to match your certificates.

Step 2 - Prepare your branding information
All the branding information such as product name and branding artworks are contained in one single directory. You can use the testbranding folder as an 
example and replace all the information contained inside to have all the branding information ready.

The folder will be an input command line parameter to the transform script. 

Step 3 - Prepare the DMG files
In the standard Gladinet Mac binaries, there are a couple DMG file. DMG files are Mac image files. The DMG file can be mounted as Mac
volume, and inside there is the real installer. So the DMG file is just a way to carry the Installer PKG file around.

You can download the DMG file from CentreStack downlod page. You can also get the DMG file from your own CentreStack installation folder.



Step 4 - Change the transform script to use your certificate.
Locate the two lines inside the transform script, 
readonly SIGN_APP_STR="Developer ID Application: Gladinet, Inc. (CX8U2YJ96P)"
readonly SIGN_PKG_STR="Developer ID Installer: Gladinet, Inc."

and replace these two lines to use your own certificates.

Step 5 - do the transform
The syntax for the transform is
transform.sh branding_dir mac_dmg_file

we recommend using the full shell command like the following

sudo bash -x transform_mac.sh testbranding/ MacClient.9_6.10.161.33940.dmg &> log1.txt

the sudo means run it with admin.

bash -x means record all the execution results

transform_mac.sh is the shell script to run. If your Mac's bash shell only accept UNIX line ending (such as no \r - carriage return), you will need to transform the transform_mac.sh and the common.sh to UNIX style. If you use the bash shell that comes with your
Mac, you are likely to be fine with Mac text file style without the need to transform text file first.

&> log1.txt means log stderr and stdout to the log1.txt. so in the case of error, the log1.txt file has clues of what happened.

There is an example log1.txt that documents a successful transform. You can also compare your log with log1 to see what happened.

The generated branding installer will be called output_<input.dmg> in the same folder

You can read the transform_mac.sh shell script for more details.